<!--create by 郭晓萌 on 2018.1.30-->
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<head th:include="head :: head">
    <link rel="import" href="../head.html"/>
</head>
<body class="nav-md">
<div class="container body">
    <div class="main_container">
        <!--左树-->
        <div id="letree1" class="col-md-3 left_col" th:replace="letree :: letree"></div>
        <!--头部-->
        <div class="top_nav" th:include="header :: top"></div>
        <!--内容-->
        <div class="right_col" role="main"></div>
    </div>
</div>
<footer th:include="head :: footer"></footer>
<script type="text/javascript" th:inline="javascript">
    /*<![CDATA[*/
    $(function () {  //默认加载list页

        $.goTo(/*[[@{toCgMenuList}]]*/"./menu_list.html");

    });

    function backToList() {//返回按键，回到数据的table--(role_list)
        $.goTo(/*[[@{toCgMenuList}]]*/"./role_manage/role_list.html");
    }
    function update(obj) {//跳转到修改页

        /*[+
         var id = $(obj).attr("id");
         $.goTo("toCgMenuUpdate/"+id);
         +]*/
    }
    function up(number) {//分页跳转，上一页
        /*[+
         var findForm = $("#findForm").serialize();
         var number = parseInt(number);
         $.goTo("toCgMenuList?page="+number,findForm);
         +]*/
    }

    function next(number) {//分页跳转，下一页
        /*[+
         var findForm = $("#findForm").serialize();
         var number = parseInt(number) + 2;
         $.goTo("toCgMenuList?page="+number,findForm);
         +]*/
    }
    function pageTo(page) {
        /*[+
         var number = page;
         var findForm = $("#findForm").serialize();
         $.goTo("toCgMenuList?page=" + number,findForm);
         +]*/

    }
    function find() {//根据查询条件，查出数据，重新加载数据的table--(role_list)
        /*[+
         var findForm = $("#findForm").serialize();
         $.goTo("toCgMenuList",findForm);
         +]*/

    }
    function deletecase(obj) {//删除一条数据：逻辑删除为不可用状态
        /*[+
         var menuid = $(obj).attr("id");
         $.MsgBox.Confirm("提示", "执行删除后将无法恢复，确定继续吗？", function () {
         $.post("delete/"+menuid, function (result) {
         if(result==0){
             $.MsgBox.Alert("提示", "一级菜单无法删除");
         }else if(result==1){
             $.MsgBox.Alert("提示", "删除成功");
         }else{
             $.MsgBox.Alert("提示", "删除失败");
         }
             find();
         });
         });
         +]*/
    }
    function saveAndFlush() {//修改数据接口调用
        /*[+
         $.MsgBox.Confirm("提示", "确定修改吗？", function () {
         var roleSaveAndFlush = $("#defaultForm").serialize();
         $.post("update", roleSaveAndFlush, function (result) {
         $.MsgBox.Alert("提示", result);
         if (result==("修改成功"))
         find();
         });
         })
         +]*/

    }
    /*]]>*/
</script>

</body>
</html>
